package main

import (
	"fmt"
	"github.com/gorilla/websocket"
	"net/http"
	"runtime"
)

var upgrader = websocket.Upgrader{}

func main() {
	//设置多核
	//runtime.GOMAXPROCS(runtime.NumCPU() * 2)
	fmt.Print("本机处理器核心数量：", runtime.NumCPU())
	http.HandleFunc("/", aGoLangStd)
	if err := http.ListenAndServe(":8888", nil); err != nil {
		fmt.Print("网络初始化错误", err)
		return
	}
}

func te(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintln(w, "zhanguo")
}
